package random

import (
	"fmt"
	"math/rand"
	"strconv"
	"time"
)

func GenCode(length int) (result string) {
	rand.Seed(time.Now().Unix())
	for i := 0; i < length; i++ {
		result += strconv.Itoa(rand.Intn(9))
	}
	fmt.Println(result, "====>>>")
	return result
}
